package com.aidong.util;

public class ReadPropertiesUtil {
	//首页六个ICON
	public static String getSmallImg(Object url){
		return QiniuUtil.QINIU_URL+url+"?imageMogr2/thumbnail/100x100/interlace/1";
	}
	//基本图片
	public static String getIMGREAD(Object url){
//		String prefix = "";
//		try {
//			 InputStream ios = new BufferedInputStream(new FileInputStream("config/upload.properties"));
//			 Properties prop = new Properties();
//			 prop.load(ios);
//			 prefix = prop.getProperty("imgPath.prefix");s
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
		//return "http://m1.aidong.me/adImagePro";
//		return "http://m1.aidong.me/adImagePro/images/circles/201603311154551660.jpg";
		return QiniuUtil.QINIU_URL+url+"?imageMogr2/thumbnail/750x750/interlace/1";
	}
	//商品列表首页
	public static String get300Img(Object url){
		return QiniuUtil.QINIU_URL+url+"?imageMogr2/thumbnail/330x330/interlace/1";
	}
	//我的预约中课程和活动
	public static String getCourseImg(Object url){
		return QiniuUtil.QINIU_URL+url+"?imageMogr2/thumbnail/!100x100r/gravity/Center/crop/100x100";///
	}
	//视频封面
	public static String getVideoCover(Object url){
		return QiniuUtil.QINIU_URL+url+"?imageMogr2/thumbnail/750x750/interlace/1";//"?vframe/jpg/offset/2/w/750/h/750";///thumbnail/!100p/gravity/Center/crop/100x100
	}
	//视频封面
		public static String getVideoSmallCover(Object url){
			return QiniuUtil.QINIU_URL+url+"?imageMogr2/thumbnail/580x368/interlace/1";//"?vframe/jpg/offset/2/w/750/h/750";///thumbnail/!100p/gravity/Center/crop/100x100
		}
	//视频
	public static String getVideo(Object url){
		return QiniuUtil.QINIU_VIDEO_URL+url;
	}
	//直播
	public static String getLiveVideoCover(Object url){
		return QiniuUtil.QINIU_URL+url;//"?vframe/jpg/offset/2/w/750/h/750";///thumbnail/!100p/gravity/Center/crop/100x100
	}
	
	public static String getIMGUPLOAD() {
//		String path = "";
//		try {
//			 InputStream ios = new BufferedInputStream(new FileInputStream("config/upload.properties"));
//			 Properties prop = new Properties();
//			 prop.load(ios);
//			 path = prop.getProperty("uploadfile.path");
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
		//return "G:/mnt/tomcat/webapps/adImagePro";
		return "/mnt/tomcat/webapps/adImagePro";
	}
}
